<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>Blazor Android app</title>
    <base href="/" />
    <link href="css/app.css" rel="stylesheet" />
    <link href="Maui.Controls.Sample.styles.css" rel="stylesheet" />
    <script>
        var i = 1;
        function addDynamicComponent() {
            var z = document.createElement('div');
            document.body.appendChild(z);
            Blazor.rootComponents.add(z, 'my-dynamic-root-component', { incrementAmount: i });
            i++;
        }
    </script>
</head>

<body>

    <div id="app"></div>

    <div id="blazor-error-ui">
        An unhandled error has occurred.
        <a href="" class="reload">Reload</a>
        <a class="dismiss">🗙</a>
    </div>
    <button onclick="addDynamicComponent()">Add dynamic component</button>
    <script src="_framework/blazor.webview.js" autostart="false"></script>

</body>

</html>
